package maps

import "fmt"

func main() {
	m:= map[string]string{
		"name":"ccmouse",
		"course":"golang",
		"site":"imooc",
		"quality":"notbad",
	}

	m2:= make(map[string]int)
	var m3 map[string]int

	fmt.Println(m,m2,m3)

	for k,v := range m {
		fmt.Println(k,v)
	}


	coursenme,ok := m["course"]
	fmt.Println(coursenme,ok)

	if causenme,ok := m["cause"];ok{
		fmt.Println(causenme)
	}else {
		fmt.Println("key does not exist")
	}



	delete(m,"name")
	name,ok := m["name"]
	fmt.Println(name,ok)


}
